{include file="header.html"}
<link type="text/css" href="css/datepicker.css" rel="stylesheet" />
<body class="gr">

{if $is_app!=1}
<div class="navBar">
	<a class="left" href="wap.php?app=home&act=index"><i class="return"></i></a>
	<div class="titleView-x">每日签到</div>
</div>
{/if}

<div class="member-sign {if $is_app!=1}main-padding-top{/if}">
	<div class="view">
		<div class="circle-view {if $data.signed==1}circle-view-signed{/if}">
			<a href="javascript:void(0)" class="sign-success"><span>签到成功</span></a>
			<a href="javascript:void(0)" class="sign-days">您已累计签到{$data.times}天</a>
			<form action="api.php?app=member&act=sign" skip="loading" method="post">
			<input type="hidden" name="gourl" value="wap.php?app=member&act=sign" />
			<input type="submit" class="sign-btn" value="{if $data.signed==1}已签到{else}立即签到{/if}" />
			</form>
		</div>
	</div>
	<div class="sign-integral-bg">
		<div class="sign-integral ge-bottom"><span class="month-name"></span>月签到表</div>
	</div>
	<div class="cale" initdate="{implode(',',$data.days)}"></div>
	<div class="sign-integral-bg">
		<div class="sign-integral ge-bottom">签到积分</div>
	</div>
	<div class="sign-integral-memo">
		<div class="sign-ico1"></div>
		<div class="sign-memo">每日签到累计积分，第一天获得2积分，第二天获得4积分，第三天获得6积分，第四天获得8积分，第五天获得10积分。后续不断续的签到每天增加10积分。</div>
	</div>

	<div class="sign-integral-bg">
		<div class="sign-integral ge-bottom">积分礼包</div>
	</div>
	<div class="sign-integral-memo">
		<div class="sign-ico1 sign-ico2"></div>
		<div class="sign-memo">分享APP并有新用户注册：分享者必能获得500积分！注册者也能获得200积分喔。</div>
	</div>

	<div class="sign-integral-bg">
		<div class="sign-integral ge-bottom">生日特权</div>
	</div>
	<div class="sign-integral-memo">
		<div class="sign-ico1 sign-ico3"></div>
		<div class="sign-memo">注册七天以上的用户，生日当天积分X10倍喔！</div>
	</div>
</div>

{include file="footer.html"}
<script>
var transform = 'rotate(-5deg) translateX(-3%)';
function setDatepicker(){
	$('.cale').datepicker({
		cls:'calendar',
		static:true,
		multiple:true,
		hiddenNavBar:true,
		disable:true,
		touchMove:false,
		minDate:'+1',
		maxDate:'today'
	});
}
function resize(){
	$('.member-sign .view').autoHeight(320, 148);
	var tf = transform + ($.window().width/320!=1 ? ' scale('+($.window().width/320)+')' : '');
	$('.circle-view').css('transform', tf);
}
$(window).resize(resize);
$(function(){
	resize();
	setDatepicker();
	var months = ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'];
	$('.month-name').html(months[(new Date()).getMonth()]);
});
</script>